// 更多图标的点击(more.png)，导航栏的移动端与pc端切换
document.getElementsByClassName('more')[0].addEventListener('click', handleClick);

function handleClick() {
	//获取input框
	var moreChecked = document.getElementsByClassName('moreChecked')[0];
	moreChecked.checked = !moreChecked.checked
	moreChecked.checked === true ? document.getElementsByClassName('navbar')[0].classList.add('active_more_click') :
		document.getElementsByClassName('navbar')[0].classList.remove('active_more_click')
	//显示与隐藏所有模块
	moreChecked.checked === true ? document.getElementsByClassName('allModule')[0].style.display = 'block' : document
		.getElementsByClassName('allModule')[0].style.display = 'none';
	moreChecked.checked === true ? document.getElementById('myModule').style.justifyContent = 'flex-start' : document
		.getElementById('myModule').style.justifyContent = 'space-between';
	moreChecked.checked === true ? document.getElementsByClassName('container')[0].style.display = 'block' : document
		.getElementsByClassName('container')[0].style.display = 'flex';
		Object.assign(document.getElementById('myModule').style,{
			display:'flex',
			flexDirection:'column'
		})
	moreChecked.checked === true ? document.getElementsByClassName('more')[0].classList.add('more_movetozero') :
		document.getElementsByClassName('more')[0].classList.remove('more_movetozero');
}